Repository navigation
Take web-tooling v0.2.0: the browser in its own network namespace - #7
Merged
Merged
Conversation
web-tooling 0.2.0's launch() runs Chrome in a user and network namespace with only loopback up, so a host link or address change no longer aborts the browser tier's page loads with ERR_NETWORK_CHANGED. The machine now needs unshare, ip, and unprivileged user namespaces. - package.json and the lockfile pin github:standards-lab/web-tooling#v0.2.0. - ci.yml and release.yml run "Allow the browser's network namespace" (sysctl kernel.apparmor_restrict_unprivileged_userns=0) just before the check, the shape of web-tooling's own CI. - docs/testing.md says what the browser tier needs from the machine, pointing to web-tooling's README; docs/release.md names the CI step; CHANGELOG records it. With a refusing unshare first on PATH, every browser test file fails in about 150 ms on launch()'s rejection: each after hook already closes with optional chaining, so the server started before launch() is stopped, and no test changed. No test or doc named ERR_NAME_NOT_RESOLVED.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Take web-tooling v0.2.0: the browser in a network namespace of its own
web-tooling v0.2.0 (standards-lab/web-tooling#7) runs Chrome in a user and network namespace of
its own, with only loopback up. Chrome used to drop every open connection, loopback included,
with
net::ERR_NETWORK_CHANGEDwhenever any interface on the machine changed. A Docker network,Wi-Fi, or a VPN was enough, and local browser tiers failed with "Failed to fetch dynamically
imported module".
@standards-lab/web-toolingat#v0.2.0.sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0before the check:Ubuntu runners refuse unprivileged user namespaces otherwise.
launch()refused (a stubunshare), every browser test file fails promptly; nonehangs.
unshare,ip, and unprivileged usernamespaces. CHANGELOG records the change under Unreleased.